package vikaa.bean;

public class WeiboFriend {
	private String name;
	private String id;
	private String phone;
	private boolean isSelected;
	@Override
	public String toString() {
		if(phone.equals("no")){
			return "{\"type\":\"sina2\",\"nickname\":\""+name+"\",\"value\":\""+id+"\"}";
		}
		return "{\"type\":\"phone\",\"nickname\":\""+name+"\",\"value\":\""+phone+"\"}";
	}
	public String toFriends(){
		return "{\"nickname\":\""+name+"\"}";
	}
	public WeiboFriend() {
		super();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public boolean isSelected() {
		return isSelected;
	}
	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
}
